from openpyxl import Workbook

if __name__ == '__main__':
    wb = Workbook()
    ws = wb.active
    header = ['电影名', '电影分类', '国家', '电影时长', '上映日期', '评分']
    for k, v in enumerate(header):
        ws.cell(1, k + 1, v)
    wb.save('balances.xlsx')
